/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package replica.transaction;

import java.io.File;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;
import replica.stableMemory.StableFile;
import replica.transaction.TransactionStatus.Type;

/**
 *
 * @author andrea
 */
public class FrontEndLogRegister extends LogRegister
{

    
    public FrontEndLogRegister(long id,StableFile<TransactionStatus> stableFile)
    {
        super(id,stableFile);
        //File file = new File(getNameFile());
    }

    @Override
    public List<Type> getPersistentStatuses() {
        Type[] statuses={Type.PREPARE,Type.COMMIT,Type.ABORT,Type.OK,Type.GETLIST_REQ};
        return Arrays.asList(statuses);
    }

    @Override
    public String getNameFile() {
        return "files/LogRegister/FrontEnd_"+super.idFrontEnd+"/";
    }
    
}
